class CreateEmails < ActiveRecord::Migration
  def self.up
    create_table :emails do |t|
      t.integer :sender_id,:null => false
      t.integer :receiver_id,:null => false
      t.text :content
      t.datetime :time_email,:null => false
      t.integer :type,:null => false

      t.timestamps
    end
  end
  def self.down
    drop_table :emails
  end
end
